package cn.edu.ctbu.dp01.common;

/**
 * 返回码常量
 */
public class ResultCode {
    /**
     * 操作成功
     */
    public static final int SUCCESS = 0;
    
    /**
     * 操作失败
     */
    public static final int ERROR = 1;
    
    /**
     * 参数校验失败
     */
    public static final int VALIDATE_FAILED = 400;
    
    /**
     * 未授权
     */
    public static final int UNAUTHORIZED = 401;
    
    /**
     * 未认证或认证失败
     */
    public static final int FORBIDDEN = 403;
    
    /**
     * 资源未找到
     */
    public static final int NOT_FOUND = 404;
    
    /**
     * 服务器内部错误
     */
    public static final int SERVER_ERROR = 500;
}